/*Created by malinyu on 2018/9/7.*/
function phonecall() {
    $(".phonecall").on("click", function() {
        $("#popLayer,.errpop").show();
    });
}

<!--引导栏-->
function leaderTab(){
    $("#leader_tab").html('<div class="leader_tab">\n' +
        '    <div class="ld_tabl fl">\n' +
        '        <a id="ld_back" class="ld_back fl"><img src="../image/left.png" alt=""></a>\n' +
        '        <a id="ld_next" class="ld_next flr"><img src="../image/right.png" alt=""></a>\n' +
        '    </div>\n' +
        '    <div class="ld_tabr flr">\n' +
        '        <a id="ld_home" class="ld_back fl"><img src="../image/home.png" alt=""></a>\n' +
        '        <a id="ld_closed" class="ld_next flr"><img src="../image/closed.png" alt=""></a>\n' +
        '    </div>\n' +
        '</div>');
    $('#ld_back').on('click',function () {
        window.history.back(-1);
    });
    $('#ld_next').on('click',function () {
        window.history.go(1);
    });
}


$(function(){
    $('.return-prebtn').on('click', function(){
        window.history.back(-1);
    });
    $(".pop").load("../view/common/pop.html");
    //电话
    phonecall();
    leaderTab();

    //  微信设置
    if (typeof(WeixinJSBridge) == "undefined") {
        document.addEventListener("WeixinJSBridgeReady", function (e) {
            setTimeout(function () {
                WeixinJSBridge.invoke('setFontSizeCallback', {"fontSize": 0}, function (res) {
                    // alert(JSON.stringify(res));
                });
            }, 0);
        });
    } else {
        setTimeout(function () {
            WeixinJSBridge.invoke('setFontSizeCallback', {"fontSize": 0}, function (res) {
                // alert(JSON.stringify(res));
            });
        }, 0);
    }

});